// components/activity/activity-help-sell-select/index.js
const componentBehavior = require('../../../behaviors/component');
const { COMPONENT_OPTIONS } = require('../../../constants/common');

Component({
    behaviors: [componentBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        show: {
            type: Boolean,
            value: false,
        },
        isSpokesman: {
            type: Boolean,
            value: false,
        },
    },
    methods: {
        handleClose() {
            this.setData({
                show: false,
            });
        },
        handleSpokes(e) {
            this.triggerEvent('spokes');
            this.handleClose();
        },
        handleDistribute(e) {
            this.triggerEvent('distribute');
            this.handleClose();
        },
    }
})
